<div class="container" *ngIf="Object.keys(Store.recordHistoryMap).length>0">
  <p class="title">产品浏览记录</p>
  <div class="child" *ngFor="let record of Object.entries(Store.recordHistoryMap)">
    <div class="card">
      <span>产品名:{{ record[0] }}</span>
      <span>浏览次数:{{ record[1] }}</span>
    </div>
    <br>
  </div>
</div>
<style>
  .container {
    display: flex;
    width: 100vw;
    flex-direction: column;
  }

  .title {
    font-size: 20px;
    font-weight: bold;
    align-self: center;
    justify-self: center;
  }

  .child {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .card{
    justify-self: center;
    align-self: center;
  }
</style>
